stop
Type
command
Summary
Stops a currently playing sound or movie.
Syntax
stop [playing] {<player> | <videoClip> | <audioClip>}
Description
Use the stop command to halt a sound or movie before it finishes. For example, you can use the stop command in the script of a button, to let the user click to stop a repeating sound.
The stop command stops playing a video clip or audio clip started with the play command.
Parameters
Name | Type | Description |
---|---|---|
player | A reference to a player that holds a currently playing sound or movie. | |
videoClip | A reference to a video clip that is currently playing. | |
audioClip | A reference to an audio clip that is currently playing. |
Examples
stop player "video"
stop playing audioClip "track1"
Related
keyword: button
property: script, playDestination
command: start, revStopAnimation, stop recording, play
glossary: command, video clip, audio clip
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
Platforms
desktop
server